<!DOCTYPE html>
<html lang="zh">

<head>
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta charset="utf-8">
    <title>首页</title>
    <meta name="keywords" />
    <meta name="description" />
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="./css/animate.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/swiper.css">
    <link rel="stylesheet" href="./css/jquery.fullPage.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./js/gsap.min.js"></script>
    <style>
        .swiper-container-free-mode>.swiper-wrapper {
            transition-timing-function: linear;
        }
    </style>
</head>

<body>
    <div class="loading">
        <div class="progress-number">0%</div>
        <div class="ft">
            <div class="slogan">
                <img src="./images/logo.png" alt="">
            </div>
            <div class="st">@exhibition hall</div>
        </div>
        <div class="dLeft"></div>
    </div>
    <div class="dialog animated fadeIn">
        <div class="content">
            <div class="t1">Age Verification</div>
            <div class="des">
                To use the Moshvape website, you must be aged 21 yearS or over. Please verify your age before entering
                the site.
            </div>
            <div class="all_btn">
                <div class="abtn" id="a_btn">l am under 21</div>
                <div class="abtn" id="b_btn">l am 21+</div>
            </div>
        </div>
    </div>
    <div class="home">

        <div class="header">
            <div class="l">
                <div class="logo animated fadeIn">
                    <a href="./index.html">
                        <img src="./images/logo1.png" alt="">
                    </a>
                </div>
                <div class="icons">
                    <div class="bg"></div>
                    <a href="">
                        <img src="./images/i1.png" alt="">
                    </a>
                    <a href="">
                        <img src="./images/i2.png" alt="">
                    </a>
                    <a href="">
                        <img src="./images/i3.png" alt="">
                    </a>
                    <a href="">
                        <img src="./images/i4.png" alt="">
                    </a>
                </div>
            </div>
            <div class="r animated fadeIn">
                <a class="logo" href="./index.html">
                    <img src="./images/logo.png" alt="">
                </a>
                <div class="links">
                    <a href="./index.html" class="active">
                        <span></span>
                        <p>HOME</p>
                    </a>
                    <a href="./products.html">
                        <span></span>
                        <p>Products</p>
                    </a>
                    <a href="./odm.html">
                        <span></span>
                        <p>ODM/OEM Services</p>
                    </a>
                    <a href="./news.html">
                        <span></span>
                        <p>News</p>
                    </a>
                    <a href="./contact.html">
                        <span></span>
                        <p>Contact Us</p>
                    </a>
                </div>
                <div class="search">
                    <img src="./images/search.png" alt="">
                    <div class="nr">
                        <form action="/search.html">
                            <input type="text" name="q">
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <div class="pheader">
            <div class="menu">
                <a href="./index.html" target="_self" class="animated fadeInUpLeft">
                    <img src="./images/logo.png" alt="">
                </a>
                <div class="navbox">
                    <div class="line"></div>
                    <div class="line"></div>
                    <div class="line"></div>
                </div>
            </div>
        </div>
        <div class="menuList">
            <div class="item animated fadeInUp">
                <div class="tb">
                    <a href="./index.html">HOME</a>
                </div>
            </div>
            <div class="item animated fadeInUp">
                <div class="tb">
                    <a href="./products.html">Products</a>
                </div>
            </div>
            <div class="item animated fadeInUp">
                <div class="tb">
                    <a href="./odm.html">ODM/OEM Services</a>
                </div>
            </div>
            <div class="item animated fadeInUp">
                <div class="tb">
                    <a href="./news.html">News</a>
                </div>
            </div>
            <div class="item animated fadeInUp">
                <div class="tb">
                    <a href="./contact.html">Contact Us</a>
                </div>
            </div>
        </div>

        <div id="fullPage">
            <div class="section section1">
                <div class="first_dom">
                    <div class="l">
                        <div class="txt">
                            <div class="t1 animated fadeIn">
                                <img src="./images/pic1.png" alt="">
                            </div>
                            <div class="t3 animated fadeIn">
                                our goal is to make it as easy as possible for you To
                                walk away with the solution that suits your needs
                                perfectly.
                            </div>
                        </div>
                    </div>
                    <div class="pros animated fadeIn">
                        <div class="btn">
                            <p>NEXT</p>
                        </div>
                        <div class="swiper-container">
                            <div class="swiper-wrapper">
                                <div class="swiper-slide" data-color="#E49F41">
                                    <div class="info">
                                        <a href="">
                                            <img src="./images/p1.png" alt="">
                                        </a>
                                    </div>
                                </div>
                                <div class="swiper-slide" data-color="blue">
                                    <div class="info">
                                        <a href="">
                                            <img src="./images/p2.png" alt="">
                                        </a>
                                    </div>
                                </div>
                                <div class="swiper-slide" data-color="#fff">
                                    <div class="info">
                                        <a href="">
                                            <img src="./images/p1.png" alt="">
                                        </a>
                                    </div>
                                </div>
                                <div class="swiper-slide" data-color="green">
                                    <div class="info">
                                        <a href="">
                                            <img src="./images/p2.png" alt="">
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="fills">
                        <span class="fill"></span>
                        <span class="fill"></span>
                        <span class="fill"></span>
                        <span class="fill"></span>
                    </div>
                </div>
            </div>
            <div class="section">
                <div class="second_dom">
                    <div class="d1">
                        <div class="t1">Featured Cases</div>
                        <div class="t2">
                            20**-2023
                        </div>
                        <div class="t3">
                            From appearance to material, we accept<br>
                            all personalized customization
                        </div>
                        <div class="line">
                            <svg width="1387" height="204" viewBox="0 0 1387 204" fill="none"
                                xmlns="http://www.w3.org/2000/svg">
                                <path
                                    d="M23.2026 2C7.20263 24.1667 -15.1974 83.3 23.2026 142.5C71.2026 216.5 158.203 200.5 160.703 200C163.203 199.5 232.203 190.5 269.203 118C275.703 107 293.203 58.5 246.203 61C232.203 62.5 185.703 78 189.203 113C192.703 148 242.703 168 299.203 174C355.703 180 463.703 162.5 565.203 78.5C597.703 52 616.203 1 579.203 15.5C542.203 30 515.703 149 705.203 140C749.941 137.875 849.789 126.877 953.41 49.0318C954.328 48.3428 955.771 49.6178 955.202 50.6137C941.669 74.2983 911.979 147.127 1016.7 143.5C1109.1 140.3 1300.54 94.8333 1384.7 72.5"
                                    stroke="black" stroke-width="3" />
                            </svg>
                        </div>
                    </div>
                    <div class="products">
                        <div class="scroll-container">
                            <div class="animate_box">
                                <div class="flex-xb">
                                    <div class="info animated fadeInUp">
                                        <a href="./proInfo.html">
                                            <div class="tag color1">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp1.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info animated fadeInUp" style="animation-delay: 100ms;">
                                        <a href="./proInfo.html">
                                            <div class="tag color2">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp2.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info animated fadeInUp" style="animation-delay: 200ms;">
                                        <a href="./proInfo.html">
                                            <div class="tag color3">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp3.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info animated fadeInUp" style="animation-delay: 300ms;">
                                        <a href="./proInfo.html">
                                            <div class="tag color4">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp4.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info animated fadeInUp" style="animation-delay: 400ms;">
                                        <a href="./proInfo.html">
                                            <div class="tag color1">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp1.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info animated fadeInUp" style="animation-delay: 500ms;">
                                        <a href="./proInfo.html">
                                            <div class="tag color2">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp2.png" alt="">
                                        </a>
                                    </div>
                                </div>
                                <div class="flex-xb">
                                    <div class="info">
                                        <a href="./proInfo.html">
                                            <div class="tag color1">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp1.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info">
                                        <a href="./proInfo.html">
                                            <div class="tag color2">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp2.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info">
                                        <a href="./proInfo.html">
                                            <div class="tag color3">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp3.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info">
                                        <a href="./proInfo.html">
                                            <div class="tag color4">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp4.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info">
                                        <a href="./proInfo.html">
                                            <div class="tag color1">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp1.png" alt="">
                                        </a>
                                    </div>
                                    <div class="info">
                                        <a href="./proInfo.html">
                                            <div class="tag color2">
                                                <p>SEE MORE</p>
                                                <img src="./images/jt.svg" alt="">
                                            </div>
                                            <img src="./images/hp2.png" alt="">
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="section">
                <div class="video_dom">
                    <video id="video" preload="metadata" playsinline="playsinline"
                        webkit-playsinline="webkit-playsinline" x5-video-player-type="h5"
                        x5-video-player-fullscreen="true" data-object-fit="cover" x5-video-orientation="portrait">
                        <source src="./images/1.mp4">
                    </video>
                    <div class="play">
                        <img src="./images/play.png" alt="">
                    </div>
                </div>
            </div>
            <div class="section fp-auto-height">
                <div class="foot">
                    <div class="content">
                        <div class="logo">
                            <img src="./images/logo1.png" alt="">
                        </div>
                        <div class="c">
                            <div class="t1">
                                give service to
                            </div>
                            <div class="des">
                                <p>OEM for all of our series</p>
                                <p>ODM according to customer's needs</p>
                                <p>Posters S Packaging Design</p>
                                <p>Marketing videos and redenderings making</p>
                            </div>
                        </div>
                        <div class="c">
                            <div class="t1">
                                contact
                            </div>
                            <div class="des">
                                <p>
                                    Room 1503, TangWei Business Mansion, Fuhai
                                    Street.Baoan District, Shenzhen, China
                                </p>
                                <p>0755-23014350</p>
                                <p>info@moshvape.com</p>
                                <p>charley@moshvape.com</p>
                            </div>
                        </div>
                        <div class="sub">
                            <div class="t1">Subscribe to us</div>
                            <div class="icons">
                                <a href="">
                                    <img src="./images/i1.png" alt="">
                                </a>
                                <a href="">
                                    <img src="./images/i2.png" alt="">
                                </a>
                                <a href="">
                                    <img src="./images/i3.png" alt="">
                                </a>
                                <a href="">
                                    <img src="./images/i4.png" alt="">
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!--    鼠标跟随效果-->
    <div class="wizardry-code w-embed w-script">
        <div class="cursor">
            <div class="cursor__ball cursor__ball--big ">
                <svg height="60" width="60">
                    <circle cx="30" cy="30" r="20" stroke-width="0"></circle>
                </svg>
            </div>
            <div class="cursor__ball cursor__ball--small">
                <svg height="14" width="14">
                    <circle cx="7" cy="7" r="5" stroke-width="0"></circle>
                </svg>
            </div>
        </div>
        <style>
            @media screen and (max-width: 480px) {
                body {
                    -webkit-overflow-scrolling: auto;
                    scroll-snap-stop: always;
                    cursor: auto;
                }

                .cursor {
                    display: none;
                }
            }

            /* Hide scrollbar for Chrome, Safari and Opera */
            html::-webkit-scrollbar {
                display: none;
            }

            /* Hide scrollbar for IE, Edge and Firefox */
            html {
                -ms-overflow-style: none;
                /* IE and Edge */
                scrollbar-width: none;
                /* Firefox */
            }

            .cursor {
                pointer-events: none;
            }

            .cursor__ball--big {
                opacity: 0;
                display: none;
            }

            .cursor__ball--small {
                opacity: 0;
            }

            .cursor__ball {
                position: fixed;
                top: 0;
                left: 0;
                /* mix-blend-mode: difference; */
                z-index: 99999;
            }

            .cursor__ball circle {
                fill: #000;
            }
        </style>
        <script>
            // 1. Pass the css styles in an array
            const styles = [
                'color: #FF6B00',
                'font-size: 4em',
                'font-family: sans-serif',
                'padding: 10px 20px 20px 20px',
            ].join(';');
            // 2. Concatenate the individual array item and concatenate them into a string separated by a semi-colon (;)
            // 3. Pass the styles variable
            // console.log('%cMade by http://www.u-sound.cn/', styles);
            window.addEventListener("DOMContentLoaded", (event) => {
                let mql = window.matchMedia("(min-width: 480px)");
                if (mql.matches) {
                    const $bigBall = document.querySelector('.cursor__ball--big');
                    const $smallBall = document.querySelector('.cursor__ball--small');
                    const $hoverables = document.querySelectorAll('.hoverable');
                    const $hoverablesLarge = document.querySelectorAll('.hoverable--large');
                    $bigBall.style.transform = "translateX(" + window.clientX + "px)";
                    $bigBall.style.transform = "translateY(" + window.clientY + "px)";
                    $smallBall.style.transform = "translateX(" + window.clientX + "px)";
                    $smallBall.style.transform = "translateY(" + window.clientY + "px)";
                    // Listeners
                    window.addEventListener('mousemove', onMouseMove);
                    for (let i = 0; i < $hoverables.length; i++) {
                        $hoverables[i].addEventListener('mouseenter', onMouseHover);
                        $hoverables[i].addEventListener('mouseleave', onMouseHoverOut);
                    }
                    for (let i = 0; i < $hoverablesLarge.length; i++) {
                        $hoverablesLarge[i].addEventListener('mouseenter', onMouseHoverLarge);
                        $hoverablesLarge[i].addEventListener('mouseleave', onMouseHoverOut);
                    }
                    // Move the cursor
                    function onMouseMove(e) {
                        gsap.to($bigBall, .6, {
                            x: e.clientX - 30,
                            y: e.clientY - 30,
                            opacity: 1
                        });
                        gsap.to($smallBall, .1, {
                            x: e.clientX - 7,
                            y: e.clientY - 7,
                            opacity: 1
                        });
                    };
                    // Hover an element
                    function onMouseHover() {
                        gsap.to($bigBall, .3, {
                            scale: 2.2
                        });
                    };
                    function onMouseHoverLarge() {
                        gsap.to($bigBall, .3, {
                            scale: 5
                        });
                    };
                    function onMouseHoverOut() {
                        gsap.to($bigBall, .3, {
                            scale: 1
                        });
                    };
                }
            });
        </script>
    </div>
    <script src="./js/jquery-1.11.0.min.js"></script>
    <script src="./js/swiper.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/wow.min.js"></script>
    <script src="./js/countUp.js"></script>
    <script src="./js/jquery.fullPage.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script>
        new WOW().init();
        $('.play').click(function () {
            $(this).fadeOut()
            document.getElementById("video").play();
        })
        $(document).ready(function () {
            var progress = 0
            let timer = setInterval(function () {
                progress = progress + 5
                $('.progress-number').text(progress + '%')
                if (progress === 100) {
                    clearInterval(timer)
                }
            }, 100)
        })
        setTimeout(() => {
            $('.loading').css({ 'top': '-100vh' })
        }, 2000);
        $('#fullPage').fullpage({
            scrollingSpeed: 1000,
            // anchors: ['page1', 'page2', 'page3', 'page4', 'page5', 'page6', 'page7'],
            // css3: false,
            // responsiveWidth: 900,
            responsiveSlides: true,
            menu: "#menu",
            onLeave: function (section, origin, destination, direction) {
                if (origin.index > 0) {
                    $('.header').addClass('hasBg')
                } else {
                    $('.header').removeClass('hasBg')
                }

                if (origin.index >= 2) {
                    $('.video_dom video').css({ 'transform': 'scale(1)', 'borderRadius': '0' })
                    $('.play').fadeIn()
                } else {
                    $('.video_dom video').css({ 'transform': 'scale(.6)', 'borderRadius': '20px' })
                }
            }
        });
        var swiper = new Swiper('.first_dom .swiper-container', {
            speed: 1000,
            init: false,
            loop: true,
            slidesPerView: 2,
            autoplay: false,
            navigation: {
                nextEl: '.first_dom .btn',
            },
            on: {
                slideChangeTransitionStart: function () {
                    // console.log(this.realIndex)
                    let color = $('.first_dom .swiper-container .swiper-slide').eq(this.realIndex).attr('data-color')
                    let next_color = $('.first_dom .swiper-container .swiper-slide').eq(this.realIndex + 1).attr('data-color')
                    $('.btn').attr('data-color', next_color)
                    $('.btn').attr('bg-color', color)
                    $('.btn').css({ 'background': color, 'color': '#000' })
                    // if (color == '#fff') {
                    //     // $('.btn').attr('data-color', next_color)
                    //     // $('.btn').attr('bg-color', color)
                    //     $('.btn').css({ 'background': color, 'color': '#000' })
                    // } else {
                    //     $('.btn').css({ 'background': color, 'color': '#fff' })
                    // }


                    $('.fills .fill').eq(this.realIndex).css({ 'display': 'block', 'background': color })
                    setTimeout(() => {
                        $('.fills .fill').eq(this.realIndex).css({ 'transform': 'scale(100)' })
                    }, 200);
                    // setTimeout(()=>{
                    //     $('.header .l .icons .bg').css({'background': color })
                    // },800)

                    $('.fills .fill').eq(this.realIndex).siblings('.fill').css({ 'background': 'transparent', 'transform': 'scale(1)', 'display': 'none' })
                },
                slideChangeTransitionEnd: function () {
                },
            },
        });

        $('.btn').mouseenter(function () {
            let color = $(this).attr('data-color')
            $('.btn').css({ 'background': color, 'color': '#000' })
            // if (color == '#fff') {
            //     $('.btn').css({ 'background': color, 'color': '#000' })
            // } else {
            //     $('.btn').css({ 'background': color, 'color': '#fff' })
            // }
        })
        $('.btn').mouseleave(function () {
            let bg_color = $(this).attr('bg-color')
            $('.btn').css({ 'background': bg_color, 'color': '#000' })
            // if (bg_color == '#fff') {
            //     $('.btn').css({ 'background': bg_color, 'color': '#000' })
            // } else {
            //     $('.btn').css({ 'background': bg_color, 'color': '#fff' })
            // }
        })
        var swiper2 = new Swiper('.second_dom .swiper-container', {
            speed: 1000,
            init: false,
            loop: true,
            slidesPerView: 5.5,
            spaceBetween: 40,
            centeredSlides: true,
            // freeMode: true,        // 使幻灯片滑动时不止滑动一格，且不会自动贴合 
            // slidesPerGroup: 1,   //定义1张图片为一组
            // autoplay: true,//可选选项，自动滑动
            // speed: 1000,//设置过度时间
            // grabCursor: true,//鼠标样式根据浏览器不同而定 
            // autoplay: {
            //     delay: 1,
            //     disableOnInteraction: false,
            // },
            autoplay: {
                delay: 3000,
                stopOnLastSlide: false,
                disableOnInteraction: true,
            }
        });

        setTimeout(() => {

            if (localStorage.getItem('isHidden') == null) {
                $('.dialog').css({ 'display': 'flex' })
            } else {
                $('.dialog').css({ 'display': 'none' })
                $('.home').css({ 'display': 'block' })
                swiper.init(true)
                swiper2.init(true)
            }
        }, 2800);

        $('#a_btn').click(function () {
            $('.dialog .content').fadeOut()
        })
        $('#b_btn').click(function () {
            localStorage.setItem('isHidden', 1)
            $('.dialog').css({ 'display': 'none' })

            $('.home').css({ 'display': 'block' })
            swiper.init(true)
            swiper2.init(true)
        })

        // setTimeout(() => {
        //     $('.home').css({ 'display': 'block' })
        //     swiper.init(true)
        //     swiper2.init(true)
        // }, 2800);
    </script>
</body>

</html>